<script setup lang="ts">
// import { ref, onMounted } from 'vue';

// let time = ref(3);

// const timer = setInterval(() => {
//   if (time.value > 0) {
//     time.value--;
//   } else {
//     clearInterval(timer);
//   }
// }, 1000);

// onMounted(() => {
//   timer;
// });
</script>

<template>
  <view class="container">
    <view class="center">
      <image src="/static/sim.svg" mode=""></image>
      <h2>智慧平台&nbsp;学习更轻松</h2>
      <p>Smart Learning Platform</p>
    </view>
    <!-- <view class="time">{{ time }}</view> -->

    <view class="footer">
      <image src="/static/svg/dataicon.svg" mode=""></image>
      <view class="footer_title">
        <h4>艾学习</h4>
        <span>AI XUE XI</span>
      </view>
    </view>
  </view>
</template>

<style scoped lang="scss">
.container {
  position: absolute;
  height: 100%;
  width: 100%;
  @include flex-column();
  .center {
    margin-top: 5vh;
    width: 100%;
    height: 350rpx;
    // background-color: $bgcolor;
    @include flex-column;

    image {
      width: 150rpx;
      height: 150rpx;
    }

    h2 {
      font-family: '华文行楷';
    }

    p {
      font-size: 35rpx;
      font-family: '华文行楷';
    }
  }
  // .time {
  //   width: 100rpx;
  //   height: 100rpx;
  //   border-radius: 50%;
  //   background-color: rgba(0, 0, 0, 0.4);
  //   @include flex;
  //   font-size: 40rpx;
  // }
  .footer {
    @include flex;
    image {
      width: 125rpx;
      height: 125rpx;
    }
    &_title {
      @include flex-column;
      h4 {
        font-size: 30rpx;
      }
      span {
        font-size: 12rpx;
        font-weight: 600;
      }
    }
  }
}
</style>
